# app/__init__.py
from flask import Flask

def create_app():
    app = Flask(__name__)

    # 注册硬件信息API蓝图
    from .routes.hardware import hardware_bp
    app.register_blueprint(hardware_bp, url_prefix='/api')


    return app